package com.tanhua.model.vo;

import cn.hutool.core.bean.BeanUtil;
import com.tanhua.model.domain.UserInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SoulSimilarVo implements Serializable {

    private Long id;
    private String avatar;

    public static SoulSimilarVo init(UserInfo userInfo){
        SoulSimilarVo similarYouVo = new SoulSimilarVo();
        BeanUtil.copyProperties(userInfo,similarYouVo);
        return similarYouVo;
    }
}
